<template>
  <div class="registerType">
    <div class="register-header">
      <div class="register-header-top">

      </div>
      <div class="register-inner-header-text">
        <ul>
          <li>选择注册类型</li>
          <li>填写资料</li>
          <li>注册成功</li>
        </ul>
      </div>
    </div>
    <div class="content">
      <ul>
        <li><label @click="is_have_code=1" :class="is_have_code==1?'active':''" for=""></label>我是新用户，没有企业码
        </li>
        <li><label @click="is_have_code=2" :class="is_have_code==2?'active':''" for=""></label>我有企业码，加入已开通企业
        </li>
      </ul>
    </div>
    <div class="next-btn" @click="toRegisterForm">下一步</div>
  </div>
</template>

<script>
  export default {
    name: "RegisterType",
    data() {
      return {
        is_have_code: 1,//1:没有企业吗 2：有企业吗
      }
    },
    methods:{
      toRegisterForm(){
        this.$router.push({
          path:'/register/registerForm',
          query:{is_have_code:this.is_have_code}
        });
      }
    }
  }
</script>

<style scoped type="text/scss" lang="scss">
  .registerType {
    width: 1200px;
    height: 850px;
    background-color: #FFFFFF;
    /*margin: 43px auto auto auto;*/
    padding-top: 50px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;

    .register-header {
      width: 1000px;
      margin: 0 auto;
      padding-bottom: 40px;
      border-bottom: 1px solid #eeeeee;

      .register-header-top {
        background-image: url("../../assets/img/register/step1_03.png");
        width: 580px;
        height: 36px;
        background-position: center;
        background-size: cover;
        margin: 0 auto;
      }

      .register-inner-header-text {
        width: 580px;
        height: 36px;
        margin: 0 auto;
        font-size: 16px;
        color: #7392AD;

        ul {
          overflow: hidden;
          padding-top: 20px;
          text-align: left;

          li {
            list-style: none;
            float: left;
          }

          li:nth-child(1) {
            width: 212px;
          }

          li:nth-child(2) {
            width: 212px;
            padding-left: 45px;
          }

          li:nth-child(3) {
            width: 127px;
            text-align: right;
          }

        }
      }
    }

    .content {
      > ul {
        width: 280px;
        margin: 0 auto;
        padding-top: 93px;
        padding-bottom: 42px;
        font-size: 18px;
        color: #333333;
        text-align: left;
        > li {
          position: relative;
          padding-left: 30px;
          list-style: none;
          padding-bottom: 40px;
          label {
            display: inline-block;
            width: 18px;
            height: 18px;
            background-image: url("../../assets/img/register/c_06.png");
            background-size: cover;
            background-position: center;
            position: absolute;
            left: 0;
            top:0;
            cursor: pointer;
          }
          .active {
            background-image: url("../../assets/img/register/c_active_06.png");
          }

        }
      }
    }
    .next-btn {
      width: 268px;
      height: 56px;
      line-height: 56px;
      text-align: center;
      background: #1192FA;
      color: #ffffff;
      font-size: 20px;
      margin: 0 auto;
      border-radius: 6px;
      cursor: pointer;
    }
  }
</style>
